<!DOCTYPE html>
<html class="am-touch js cssanimations">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>8元活动新</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="renderer" content="webkit" />
    <link rel="stylesheet" href="./assets/css/ticketN.css" />
    <style type="text/css">
        body,html{height: 100%;}
        #overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;opacity:0.65;filter:alpha(opacity=65);z-index:999;display: none;}
        #win{position:absolute; width: 100%; height: 100%;z-index:1001;display: none;}
        .menban{ background:#000;opacity:0.65;filter:alpha(opacity=65); }

        img{
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            max-width: 100%;
            height: auto;
            vertical-align: middle;
            border: 0;
        }

        .out{ display: none; }
        .okKonw{ width: 100%; overflow: hidden; }
    </style>
</head>
<body>
<!-- 蒙版图层 -->
<div id="overlay">
</div>
<div id="win">
    <img class="okKonw" src="./assets/i/mo.png" alt=""/>
</div>

<img src="assets/i/ticket/ti-bg.png" style="width: 100%;position: absolute;"/>
<!-- 8元 -->
<section class="ticket-info out">
    <div class="graph-container">
        <img class="topLogo" src="assets/i/ticket/top-logo.png" alt=""/>
        <div class="remark">精洗费时价高不够亮，快快省时价低还打蜡</div>
        <div class="text">
            <div class="amount"><span class="dollor">¥</span>8</div>
            <div class="desc">恭喜您获得</div>
            <div class="desc">快快极致洗车代金券</div>
        </div>
        <a class="btn btn-primary ko" href="##">我要洗车</a>
        <div class="remark next">代金券可在微信下单支付时自动抵扣</div>
        <div class="remark">请注意在有效期内使用哟</div>
    </div>
</section>

<!-- 10元 -->
<section class="ticket-info out">
    <div class="graph-container">
        <img class="topLogo" src="assets/i/ticket/top-logo.png" alt=""/>
        <div class="remark">精洗费时价高不够亮，快快省时价低还打蜡</div>
        <div class="text">
            <div class="amount"><span class="dollor">¥</span>10</div>
            <div class="desc">恭喜您获得</div>
            <div class="desc">快快极致洗车代金券</div>
        </div>
        <a class="btn btn-primary ko" href="##">我要洗车</a>
        <div class="remark next">代金券可在微信下单支付时自动抵扣</div>
        <div class="remark">请注意在有效期内使用哟</div>
    </div>
</section>

<!-- 68元 -->
<section class="ticket-info">
    <div class="graph-container">
        <img class="topLogo" src="assets/i/ticket/top-logo.png" alt=""/>
        <div class="remark">精洗费时价高不够亮，快快省时价低还打蜡</div>
        <div class="text">
            <div class="amount"><span class="dollor">¥</span>68</div>
            <div class="desc">恭喜您获得体验券</div>
        </div>
        <a class="btn btn-primary ko" href="##">马上查看和使用</a>
        <div class="remark next">体验券和使用网点可在公众号内会员中心查看</div>
        <div class="remark">无需预约，到店出示券给店员即可</div>
    </div>
</section>

<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function() {
        $('.btn').on('click', function() {
            $('#overlay').css('display', 'block');
            $('#win').css('display', 'block');
        });

        $('.okKonw').on('click', function() {
            $('#overlay').css('display', 'none');
            $('#win').css('display', 'none');
        });

        function hengshuping(){
            if(window.orientation == 180 || window.orientation == 0){
                //alert("竖屏状态！");
                $('#overlay').css('height','100%');
                $('#win').css('height','100%');
                $('#win').removeClass('menban');
            }
            if(window.orientation == 90 || window.orientation == -90){
                //alert("横屏状态！");
                $('#overlay').css('height','auto');
                $('#win').css('height','auto');
                $('#win').addClass('menban');
            }
        }
        window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", hengshuping, false);
    });
</script>
</body>
</html>